﻿using Newtonsoft.Json.Linq;

namespace YAPACS.RisServer.Abstractions;

/// <summary>
/// 报告扩展信息
/// </summary>
public interface IReportExtendsService
{
    /// <summary>
    /// 解析报告样式，生成AmisSchema
    /// </summary>
    /// <param name="reportOid"></param>
    /// <returns></returns>
    Task<JObject> GetSchemaAndDataAsync(Guid reportOid);

    /// <summary>
    /// 生成AmisSchema
    /// </summary>
    /// <param name="reportOid"></param>
    /// <returns></returns>
    Task<JObject> GetSchemaAsync(Guid reportOid);

    /// <summary>
    /// 获取扩展字段
    /// </summary>
    /// <param name="reportOid"></param>
    /// <returns></returns>
    Task<JArray> GetExtendFieldsAsync(Guid reportOid);
}
